package com.example.mapper;

import com.example.domain.Department;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <h3>springboot-mybatis</h3>
 * <p></p>
 *
 * @author : 你的名字
 * @date : 2020-03-02 20:36
 **/
@Component
public interface DepartmentMapper {

    @Select("select * from department")
    List<Department> findAll();
}
